package top.itmeans.yes.mapper;

import org.apache.ibatis.annotations.Param;
import top.itmeans.yes.entity.SkuStock;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * sku的库存 Mapper 接口
 * </p>
 *
 * @author Yiming.Cao
 * @since 2022-05-12
 */
public interface SkuStockMapper extends BaseMapper<SkuStock> {
    /**
     * 批量插入操作
     */
    int insertList(@Param("list") List<SkuStock> skuStockList);

    /**
     * 批量插入或替换操作
     */
    int replaceList(@Param("list")List<SkuStock> skuStockList);
}
